﻿#define _CRT_SECURE_NO_WARNINGS 1


#define _CRT_SECURE_NO_WARNINGS 1
#include "game.h"


game()
{
	char mine[ROWS][COLS];
	char show[ROWS][COLS];
	init_board(mine, ROWS, COLS, '0');
	init_board(show, ROWS, COLS, '*');
	set_mine(mine, ROWS, COLS);

	display(mine, ROWS, COLS);
	display(show, ROW, COL);

	find_mind(mine, show, ROW, COL);



}


void menu()
{
	printf("1.游戏\n");
	printf("0.退出\n");

}

int main()
{
	srand((size_t)time(NULL));

	int input = 0;
	do
	{
		menu();
		scanf("%d", &input);
		switch (input)
		{
		case 1:
			game();
			break;
		case 0:
			break;
		default:
			printf("输入非法，重新输入\n");
			break;
		}

	} while (input);
}